﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ReporteFacturacion.aspx.cs" Inherits="Reportes_ReporteFacturacion" %>

<%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
    Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <table>
    <tr>
    <td>
    <asp:TextBox ID="L_Nro_factura" runat="server"></asp:TextBox>
    </td>
    </tr>
    <tr>
    <td>
        <rsweb:ReportViewer ID="ReportViewer1" runat="server" Font-Names="Verdana" 
            Font-Size="8pt" Height="400px" Width="689px">
            <localreport reportpath="Reporte_Facturacion.rdlc">
                <datasources>
                    <rsweb:ReportDataSource DataSourceId="ObjectDataSource1" 
                        Name="DSFactura_DataTable1" />
                    <rsweb:ReportDataSource DataSourceId="ObjectDataSource2" 
                        Name="DSFacturaCabecera_factura_ventas" />
                </datasources>
            </localreport>
        </rsweb:ReportViewer>
        <asp:ObjectDataSource ID="ObjectDataSource2" runat="server" 
            SelectMethod="GetDataCabecera" 
            TypeName="DSFacturaCabeceraTableAdapters.factura_ventasTableAdapter">
            <SelectParameters>
            <asp:ControlParameter ControlID="L_Nro_factura" Name="cod_factura_ventas" PropertyName="Text" Type="String"  />
            </SelectParameters>
        </asp:ObjectDataSource>
        <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
            SelectMethod="GetData" TypeName="DSFacturaTableAdapters.DataTable1TableAdapter">
            <SelectParameters>
            <asp:ControlParameter ControlID="L_Nro_factura" Name="cod_factura_ventas" PropertyName="Text" Type="String" />
            </SelectParameters>
        </asp:ObjectDataSource>
    
    </td>
    </tr>
    </table>
        
        
    
    
    </div>
    </form>
</body>
</html>
